import request from '@/utils/request'

// 查询加盟申请列表
export function listJoinApply(query) {
  return request({
    url: '/business/joinApply/list',
    method: 'get',
    params: query
  })
}

// 查询加盟申请详细
export function getJoinApply(applyId) {
  return request({
    url: '/business/joinApply/' + applyId,
    method: 'get'
  })
}

// 新增加盟申请
export function addJoinApply(data) {
  return request({
    url: '/business/joinApply',
    method: 'post',
    data: data
  })
}

// 修改加盟申请
export function updateJoinApply(data) {
  return request({
    url: '/business/joinApply',
    method: 'put',
    data: data
  })
}

// 删除加盟申请
export function delJoinApply(applyId) {
  return request({
    url: '/business/joinApply/' + applyId,
    method: 'delete'
  })
}
